package com.gxa.saas.core.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gxa.saas.core.entity.TbOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * @Author cowboy
 * @Date 2022/7/19 16:27
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Users对象", description = "用户")
public class UsersVO {
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("UserId")
    private Integer userId;//id
    @ApiModelProperty("用户名")
    private String username;//用户名
    @ApiModelProperty("来源店铺")
    private String store;//来源店铺
    @ApiModelProperty("手机号")
    private String phone;//手机号

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @JsonSerialize(using = JsonSerializer.class)
//    @JsonDeserialize(using = JsonDeserializer.class)
    @ApiModelProperty("注册时间")
    private LocalDateTime creationTime;//注册时间

    @ApiModelProperty("成交次数金额")
    private OrderVO order;//成交次数/金额
    @ApiModelProperty("用户状态")
    private Integer status;//用户状态
}
